package com.example.last.dao;

import com.example.last.entity.*;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorDao {
    //登录注册
    Doctor findByNameAndPassword(@Param("username") String username, @Param("password") String password);

    List<Doctor> findBySearch(@Param("params") Params params);

    void add(Doctor doctor);

    void update(Doctor doctor);

    void delete(Integer id);

    Doctor selectByPrimaryKey(Integer id);
    Doctor selectByUsername(@Param("username") String username);

    void updatePassword(Account account);
    Doctor findByName(@Param("username") String username);

}
